]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add mouseButtonClicked argument to the callback for St.Button 'clicked' signal in...
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Tue, 8 Feb 2011 07:06:42 +0000 (02:06 -0500)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Tue, 8 Feb 2011 16:22:51 +0000 (11:22 -0500)
St.Button 'clicked' signal now has two arguments, and because we are also
passing an action id as an argument to the _onActionInvoked() callback,
we need to have the number of the signal arguments reflected accurately in
the function arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=641809

js/ui/messageTray.js

index 47b8294bdaf0551b3b6baf4a50cf184aeba42807..db9913c5b836b903e785cbdc4305d40fc97c7dfd 100644 (file)
@@ -712,7 +712,7 @@ Notification.prototype = {
         return false;
     },
 
-    _onActionInvoked: function(actor, id) {
+    _onActionInvoked: function(actor, mouseButtonClicked, id) {
         this.emit('action-invoked', id);
         if (!this.resident) {
             // We don't hide a resident notification when the user invokes one of its actions,